#include "lua_itoa.h"
int luaitoa(lua_State *L)
{
	int nNum=luaL_checkint(L,1);
	int nBit=luaL_checkint(L,2);
	char str[100];
	itoa(nNum,str,nBit);
	lua_pushstring(L, (LPCSTR)str);
	return 1;
}
int itoa_8(lua_State *L)
{
	int nNum=luaL_checkint(L,1);
	char str[100];
	itoa(nNum,str,8);
	lua_pushstring(L, (LPCSTR)str);
	return 1;
}
int itoa_16(lua_State *L)
{
	int nNum=luaL_checkint(L,1);
	char str[100];
	itoa(nNum,str,16);
	lua_pushstring(L, (LPCSTR)str);
	return 1;
}